package com.lq.educationsystem.common.vo;

import lombok.Data;

import java.util.Objects;

@Data
public class ClassesPageVo {
    /**
     * 课程id
     */
    private Integer classesId;

    /**
     * 班级名字
     */
    private String classesName;

    /**
     * 页面大小
     */
    private Integer pageSize;

    /**
     * 当前页数
     */
    private Integer page;
    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        return "ClassesPageVo{" +
                "classesId=" + classesId +
                ", classesName='" + classesName + '\'' +
                ", pageSize=" + pageSize +
                ", page=" + page +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ClassesPageVo that = (ClassesPageVo) o;
        return Objects.equals(classesId, that.classesId) && Objects.equals(classesName, that.classesName) && Objects.equals(pageSize, that.pageSize) && Objects.equals(page, that.page);
    }

    @Override
    public int hashCode() {
        return Objects.hash(classesId, classesName, pageSize, page);
    }
}
